Inverse of permutation ko kaise nikale